package com.zrh.jsd;

import com.zrh.jserver.api.ServiceOne;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
* dubbo测试
* */
@RestController
@RequestMapping("/userDubbo")
public class UserDubboController {

    @DubboReference(check = false)
    ServiceOne serviceOne;

    @PostMapping("/list")
    public void getList(){
        serviceOne.serviceOne();
    }
}